<?php
/**
 * @Name: CaoBox v1.0
 * @author LinhNMT <w2ajax@gmail.com>
 * @link http://code.google.com/p/caobox/
 * @copyright Copyright &copy; 2009 phpbasic
 */
defined('_ROOT') or die(__FILE__);
$tpl->setfile(array(
	'body'=>'news.detail.tpl',
));


// news list
$content = $oContent->get($system->params[2]);
$content = $hook->format($content);
$content['intro'] = nl2br($content['intro']);

$tpl->merge($content,'content');

$options = $oContent->options($system->params[2],1);

if($options) foreach($options as $color){
	$tpl->assign($color,'colors');
}
?>